{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Hello World!\n"
     ]
    }
   ],
   "source": [
    "print(\"Hello World!\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "代码运行过程,经常会出现栈溢出情况，现给定函数调用关系和每个的数的大小，判所该程序是否存在溢出的风险.程序如下:\n",
    "A()\n",
    "{\n",
    "    B();\n",
    "    C();\n",
    "}\n",
    "B()\n",
    "{\n",
    "    D();\n",
    "}\n",
    "C()\n",
    "{\n",
    "    E();\n",
    "}\n",
    "中A、B、C、D、E均为函数。A调用了B、C;B调用了D;C调用了E。如果每个函数独立的栈大小分别为:A为10(不包括B,C的栈大小)，B为20，C为5，D为15，E为50。调用过程中最大栈空间为路径为 A->C->E，最大栈空间为65(A->B->D"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "lccc",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.9"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
